/**
 * IBaderEditorPage.java : [com.ibader.eclipse.editors.pages] Created on 2009. 6. 5.
 *
 * Copyright (c) 2009 Raccoon Project Team.
 * Seoul, Korea
 * All rights reserved.
 *
 */
package com.ibader.eclipse.editors.pages;

import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;

import com.ibader.eclipse.Activator;

/**
 * @author KimJungSu
 * @version
 */
public abstract class IBaderEditorPage extends FormPage implements IPropertyChangeListener {

	protected FormEditor editor;
	protected FormToolkit toolkit;
	protected ScrolledForm form;

	protected IBaderEditorPage(FormEditor editor, String id, String title) {
		super(editor, id, title);
		// TODO Auto-generated constructor stub
		this.editor = editor;
	}

	@Override
	protected void createFormContent(IManagedForm managedForm) {
		// TODO Auto-generated method stub
		Activator.log("+++IBaderEditorPage::createFormContent");
		toolkit = managedForm.getToolkit();
		form = managedForm.getForm();
		Activator.log("---IBaderEditorPage::createFormContent");
	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub
		Activator.log("+++IBaderEditorPage::dispose");
		super.dispose();
		Activator.log("---IBaderEditorPage::dispose");
	}

	protected abstract void initContents();

	protected abstract void addContentEventListener();
}
